import React, {Component} from 'react';
import {BrowserRouter as Router, Route, Switch, Redirect, Link} from "react-router-dom";

import Loading from "../component/Loading";
import Loadable from 'react-loadable';

var path = require('path')

const Login = Loadable({
    loader: () => import( "../page/Login/index.js"),
    loading: Loading,

})
const P404 = Loadable({
    loader: () => import( "../page/P404/index.js"),
    loading: Loading,

})

export default () => {
    return <Switch>
        <Route exact path="/client/login" component={Login}/>
        <Route path="/*" component={P404}/>
    </Switch>
}